using System;
using System.Collections.Generic;
using System.Text;

using Circo.Essentials.Persistence.Order;
using Circo.Essentials.BusinessLogic.Views.Order;

namespace Circo.Essentials.BusinessLogic.Handlers
{
    public class Order
    {
        public static List<FieldOrder> MapViewOrderFieldsToFieldOrders(List<ViewFieldOrder> orderList)
        {
            List<FieldOrder> list = null;

            if (orderList != null)
            {
                list = new List<FieldOrder>();

                foreach (ViewFieldOrder fo in orderList)
                {
                    list.Add(fo.MapToEntity());
                }
            }

            return list;
        }        

    }
}
